async function validateTel(rule, value) {
  return value ? Promise.resolve() : Promise.reject('请填写手机号');
}

async function validateVeryCode(rule, value) {
  return value ? Promise.resolve() : Promise.reject('请填写验证码');
}

const rules = {
  tel: [{ required: true, validator: validateTel, trigger: 'blur' }],
  veryCode: [{ required: true, validator: validateVeryCode, trigger: 'blur' }],
};

const formState = ref({ tel: '', veryCode: '' });
